package com.emm.yixun.openapi.hander;

import com.emm.yixun.common.app.GetCustomerListReqDto;
import com.emm.yixun.common.app.GetCustomerListResDto;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.GetCustomerListReqVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 查询客户列表接口
 * 绿城定制化功能 （最新跟进--》暂未跟进）
 * @author Administrator
 *
 */
@Service("getCustomerListLCHander")
public class GetCustomerListLCHander extends CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetCustomerListReqVo req = (GetCustomerListReqVo) reqDto;
		GetCustomerListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetCustomerListResDto> res = new BaseResponseDTO<GetCustomerListResDto>();
		res.setResData(customerServiceFacade.getCustomerListLC(reqDto1));
		return res;
	}
	
}
